.class public Lcom/estrongs/android/ui/theme/ThemeFolderActivity;
.super Lcom/estrongs/android/ui/base/HomeAsBackActivity;
.source "ThemeFolderActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/theme/ThemeFolderActivity$d;
    }
.end annotation


# instance fields
.field private j:Lcom/estrongs/android/ui/theme/b;

.field private k:Lcom/estrongs/android/ui/theme/ThemeFolderActivity$d;

.field private l:Z

.field private m:I

.field private n:Landroid/content/Context;

.field private o:Lcom/estrongs/android/ui/theme/a;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;-><init>()V

    return-void
.end method

.method private F()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->k:Lcom/estrongs/android/ui/theme/ThemeFolderActivity$d;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/theme/ThemeFolderActivity$d;->a()I

    move-result v0

    .line 2
    iget v1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->m:I

    iget-object v2, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v2}, Lcom/estrongs/android/ui/theme/b;->d()I

    move-result v2

    if-ne v1, v2, :cond_1

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/theme/b;->h(I)Z

    move-result v0

    if-nez v0, :cond_0

    const v0, 0x7f110a80

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->g(I)V

    return-void

    .line 5
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->l:Z

    if-eqz v0, :cond_2

    const/4 v0, -0x1

    .line 6
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setResult(I)V

    goto :goto_0

    .line 7
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/theme/b;->f(I)Ljava/lang/String;

    move-result-object v0

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->o:Lcom/estrongs/android/ui/theme/a;

    const/4 v2, 0x0

    invoke-virtual {v1, p0, v0, v2}, Lcom/estrongs/android/ui/theme/a;->a(Landroid/content/Context;Ljava/lang/String;Z)Z

    :cond_2
    :goto_0
    return-void
.end method

.method private G()V
    .locals 3

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->l:Z

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v1, 0x7f110a70

    .line 3
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f110a6c

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f11029e

    new-instance v2, Lcom/estrongs/android/ui/theme/ThemeFolderActivity$c;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/theme/ThemeFolderActivity$c;-><init>(Lcom/estrongs/android/ui/theme/ThemeFolderActivity;)V

    .line 4
    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f110299

    new-instance v2, Lcom/estrongs/android/ui/theme/ThemeFolderActivity$b;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/theme/ThemeFolderActivity$b;-><init>(Lcom/estrongs/android/ui/theme/ThemeFolderActivity;)V

    .line 5
    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 6
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    goto :goto_0

    .line 7
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    :goto_0
    return-void
.end method

.method private H()V
    .locals 2

    const v0, 0x7f090b77

    .line 1
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    .line 2
    new-instance v1, Lcom/estrongs/android/ui/theme/ThemeFolderActivity$d;

    invoke-direct {v1, p0, p0}, Lcom/estrongs/android/ui/theme/ThemeFolderActivity$d;-><init>(Lcom/estrongs/android/ui/theme/ThemeFolderActivity;Landroid/content/Context;)V

    iput-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->k:Lcom/estrongs/android/ui/theme/ThemeFolderActivity$d;

    .line 3
    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/theme/ThemeFolderActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->F()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/theme/ThemeFolderActivity;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->l:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/ui/theme/ThemeFolderActivity;)Lcom/estrongs/android/ui/theme/a;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->o:Lcom/estrongs/android/ui/theme/a;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/theme/ThemeFolderActivity;)Lcom/estrongs/android/ui/theme/b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->j:Lcom/estrongs/android/ui/theme/b;

    return-object p0
.end method


# virtual methods
.method protected D()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method protected f(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/v00;",
            ">;)V"
        }
    .end annotation

    .line 1
    new-instance v0, Les/v00;

    const v1, 0x7f0809ce

    const v2, 0x7f110066

    invoke-direct {v0, v1, v2}, Les/v00;-><init>(II)V

    new-instance v1, Lcom/estrongs/android/ui/theme/ThemeFolderActivity$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/theme/ThemeFolderActivity$a;-><init>(Lcom/estrongs/android/ui/theme/ThemeFolderActivity;)V

    .line 2
    invoke-virtual {v0, v1}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    .line 3
    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f110a72

    .line 2
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setTitle(I)V

    const p1, 0x7f0c031c

    .line 3
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->setContentView(I)V

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const/4 v0, -0x1

    const-string v1, "theme_data_index"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    if-ne p1, v0, :cond_0

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 6
    :cond_0
    iput p1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->m:I

    .line 7
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->j:Lcom/estrongs/android/ui/theme/b;

    .line 8
    invoke-virtual {p1}, Lcom/estrongs/android/ui/theme/b;->j()Ljava/util/List;

    move-result-object p1

    if-nez p1, :cond_1

    .line 9
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 10
    :cond_1
    iget v0, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->m:I

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/theme/a;

    iput-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->o:Lcom/estrongs/android/ui/theme/a;

    .line 11
    invoke-virtual {p1, p0}, Lcom/estrongs/android/ui/theme/a;->b(Landroid/content/Context;)Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->n:Landroid/content/Context;

    const/4 p1, 0x0

    .line 12
    iput-boolean p1, p0, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->l:Z

    .line 13
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->H()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->G()V

    const/4 p1, 0x1

    return p1

    .line 2
    :cond_0
    invoke-super {p0, p1, p2}, Landroidx/appcompat/app/AppCompatActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 2

    .line 1
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v1, 0x102002c

    if-ne v0, v1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeFolderActivity;->G()V

    const/4 p1, 0x1

    return p1

    .line 3
    :cond_0
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result p1

    return p1
.end method
